package com.bdqn.dao;

import com.bdqn.pojo.easyuser;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface easyUserDao {

    easyuser login(@Param("username") String name ,@Param("pwd") String pwd);

    List<easyuser> findAllByUsername(String name);

    List<String> findRole( );  //获取所有的用户角色


    int deleteUserByid(Integer id);

    int saveUser(easyuser user);

    int addUser(easyuser user);

    easyuser getUserByid(Integer id);

    int saveState(@Param("id") Integer id , @Param("state") boolean state);



}
